package com.taoxi.member.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;

/**
 * 购物车管理对象 cart
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车ID */
    private Long cartId;

    /** 会员用户ID */
    @Excel(name = "会员用户ID")
    private Long userId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long quantity;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 选中状态 */
    @Excel(name = "选中状态")
    private String selected;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String images;

    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setSelected(String selected) 
    {
        this.selected = selected;
    }

    public String getSelected() 
    {
        return selected;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("goodId", getGoodId())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("selected", getSelected())
            .append("images", getImages())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
